﻿//-----------------------------------------------------------------------
// <copyright file="ColumnListViewEventArgs.cs" company="Forebrain Technology, LLC">
//
// Copyright (c) Forebrain Technology, LLC. All rights reserved.
// 
// This source code is released under the Microsoft Public License (Ms-PL).
//
// </copyright>
//-----------------------------------------------------------------------
namespace PivotCollectionMaker.WinFormApplication.Controls
{
    using System;
    using PivotCollectionTools.Data;

    /// <summary>
    /// Provides data for Column List View events.
    /// </summary>
    public class ColumnListViewEventArgs : EventArgs
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="ColumnListViewEventArgs"/> class.
        /// </summary>
        /// <param name="column">The column.</param>
        /// <param name="action">The action.</param>
        public ColumnListViewEventArgs(PivotTableColumn column, ListViewAction action)
        {
            this.Column = column;
            this.Action = action;
            this.Continue = true;
        }

        /// <summary>
        /// Gets the column.
        /// </summary>
        /// <value>The column of the column list view event args.</value>
        public PivotTableColumn Column { get; private set; }

        /// <summary>
        /// Gets the action.
        /// </summary>
        /// <value>The action of the column list view event args.</value>
        public ListViewAction Action { get; private set; }

        /// <summary>
        /// Gets or sets a value indicating whether this <see cref="ColumnListViewEventArgs"/> is continue.
        /// </summary>
        /// <value><c>true</c> if continue; otherwise, <c>false</c>.</value>
        public bool Continue { get; set; }
    }
}
